body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #fff;
}

.border-bm {
  border-bottom: 1px solid #f1f1f1;
}

/** *******************************
 * container
 * ********************************
 */
.container * {
  box-sizing: border-box;
}

.container [contenteditable] {
  outline: none;
}

/** *******************************
 * header
 * ********************************
 */
header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background-color: rgba(255, 255, 255, .9);
  overflow: hidden;
}

header .title {
  line-height: 44px;
  font-size: 16px;
  text-align: center;
}

header div a {
  font-size: 15px;
}

header a {
  display: inline-block;
  min-width: 44px;
  height: 44px;
  text-align: center;
  text-decoration: none;
}

header a.active, [state="active"] {
  color: #00C1B7 !important;
}

header a.back {
  background: url('../img/back@2x.png') no-repeat center center;
  -webkit-background-size: 20px 20px;
  background-size: 20px 20px;
  text-indent: -999px;
}

header .left-wrapper, header .right-wrapper {
  position: absolute;
  top: 0;
  height: 44px;
  line-height: 44px;
}

header .left-wrapper {
  left: 0;
}

header .right-wrapper {
  right: 8px;
}

header .preview {
  color: #BABABA;
}

header .save {
  padding: 0 10px;
  font-size: 17px;
  color: #999;
}

/*预览*/
header .back-text {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #777;
}

header .back-text:before {
  display: inline-block;
  content: '';
  margin: 0 5px 0 10px;
  width: 20px;
  height: 20px;
  background: url('../img/back@2x.png') no-repeat center center;
  -webkit-background-size: 20px 20px;
  background-size: 20px 20px;
}

/** *******************************
 * cover
 * ********************************
 */
.cover-wrapper {
  margin-top: 44px;
  overflow: hidden;
}

.cover-wrapper .cover {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 13px 13px 0;
  min-height: 100px;
  border: 1px dashed #ccc;
  border-radius: 6px;
}

.cover-wrapper .cover:after {
  position: relative;
  display: inline-block;
  height: 18px;
  line-height: 18px;
  font-size: 14px;
  text-indent: 24px;
  color: #bababa;
  content: '添加图片';
  background: url('../img/icon-pic@2x.png') no-repeat 0 0;
  -webkit-background-size: auto 18px;
  background-size: auto 18px;
}

.cover-wrapper .has-pic {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.cover-wrapper .has-pic:after {
  display: none;
}

.cover-wrapper .has-pic img {
  width: 100%;
  height: auto;
}

/** *******************************
 * title-wrapper
 * ********************************
 */
.title-wrapper {
  margin-top: 5px;
  padding: 15px 0;
}

.title-wrapper .item {
  margin: 0 13px;
}

.title-wrapper .placeholder {
  line-height: 24px;
  font-size: 20px;
  color: #ccc;
}

.title-wrapper .placeholder span {
  font-size: 16px;
}

.title-wrapper .input-hook {
  line-height: 26px;
  font-size: 20px;
  caret-color: #00c1b7;
}

/** *******************************
 * summary-wrapper
 * ********************************
 */
.summary-wrapper {
  padding: 15px 0;
}

.summary-wrapper .item {
  margin: 0 13px;
}

.summary-wrapper .placeholder {
  font-size: 16px;
  color: #ccc;
}

.summary-wrapper .input-hook {
  caret-color: #00c1b7;
}

/*article*/
article {
  overflow: hidden;
}

.zx-eidtor-container {
  margin: 10px 0 0;
}

.article-preview-wrapper {
  position: fixed;
  z-index: 101;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform .3s;
  transform: translateX(100%);
}

.preview-wrapper {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  overflow-y: auto;
}

.preview-cover {
  /*margin-top: 64px;*/
}

.preview-cover img {
  width: 100%;
}

.preview-title {
  position: relative;
  padding: 20px 13px;
  font-size: 20px;
  line-height: 26px;
  box-sizing: border-box;
}

.preview-title:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #ccc;
  content: '';
  transform: scaleY(0.5);
}

.preview-summary {
  position: relative;
  padding: 20px 13px;
  box-sizing: border-box;
}

.preview-summary:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #ccc;
  content: '';
  transform: scaleY(0.5);
}

.preveiw-content {
  margin: 3px 13px 0;
  padding-bottom: 20px;
  overflow: hidden;
}

.preveiw-content .child-node-is-a a {
  position: relative;
  display: block;
  padding: 0 21px 0 35px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 40px;
  color: #555;
  text-decoration: none;
  background: #F7F7F7 url('');
  background-repeat: no-repeat;
  background-position: 11px center;
  -webkit-background-size: 14px 14px;
  background-size: 14px 14px;
}

.preveiw-content .a-link-item i {
  display: none;
}

.preveiw-content p {
  margin: 0;
  padding: 10px 0 0;
}

/** *******************************
 * 编辑器底部样式扩展
 * ********************************
 */
.demo-summary-button i {
  background-image: url('../img/summary@2x.png');
}
@media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  .demo-summary-button i {
    background-image: url('../img/summary@3x.png');
  }
}

.demo-video-button i {
  background-image: url('../img/icon-video@2x.png');
}
@media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  .demo-video-button i {
    background-image: url('../img/icon-video@3x.png');
  }
}

.demo-audio-button i {
  background-image: url('../img/icon-audio@2x.png');
}
@media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  .demo-audio-button i {
    background-image: url('../img/icon-audio@3x.png');
  }
}
